<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Title</title>
</head>
<body>

{% for foo in abc %}
    <a href="{% url 'blog1:name1' foo.id %}">{{ foo.name }}</a>
    <br>
{% endfor %}

<form action="{% url 'blog1:my_post' %}" method="post">
{#    post表单必填#}
    {% csrf_token %}
    <input type="text" name="title1">
    <br>
    <input type="text" name="title2">
    <br>
    <input type="submit" value="提交">
</form>

</body>
</html>